package com.mirana.module.common.model.dictpm;

import com.mirana.frame.base.model.BaseModel;
import com.mirana.frame.db.base.anno.ColumnPlus;
import com.mirana.frame.db.base.anno.FKPlus;
import com.mirana.frame.db.base.anno.Notes;
import com.mirana.frame.db.base.anno.TablePlus;
import lombok.Data;

import java.util.Date;

@Data
@Notes("售中项目实施计划表")
@TablePlus(name = "dict_sz_practice_plan")
public class DictSzPracticePlan extends BaseModel {

    @Notes("项目id，外键")
    @ColumnPlus()
    @FKPlus(tableClass = DictProject.class, column = "id")
    private Long project_id;

    @Notes("计划类别，默认1。1普通计划，2项目验收")
    @ColumnPlus(default_val = "1", length = "1")
    private int plan_type;

    @Notes("计划事项")
    @ColumnPlus(default_val = "''", length = "50")
    private String plan_name;

    @Notes("计划完成时间")
    @ColumnPlus()
    private Date complete_time;

    @Notes("计划负责人id")
    @ColumnPlus(length = "20")
    private int charge_user_id;

    @Notes("计划负责人")
    @ColumnPlus(default_val = "''", length = "20")
    private String charge_user_name;

    @Notes("计划负责人手机")
    @ColumnPlus(default_val = "''", length = "20")
    private String charge_mobile;

    @Notes("实施计划状态，默认0。0、尚未开始，1、进行中，2、已完成")
    @ColumnPlus(default_val = "0", length = "2")
    private int plan_state;

}
